package org.crazyit.activiti_d5._2_DeleteMemberShip;

import org.activiti.engine.IdentityService;
import org.activiti.engine.ProcessEngine;
import org.activiti.engine.ProcessEngines;

public class DeleteMemberShip {

    public static void main(String[] args) {

        //1. 创建流程引擎
        ProcessEngine engine = ProcessEngines.getDefaultProcessEngine();

        //2. 得到身份认证服务实例
        IdentityService identityService = engine.getIdentityService();

        //由于上个类已经创建过用户, 这边跳过

        //由于之前类已经创建过用户组, 这边跳过

        //3. 解除绑定
        identityService.deleteMembership("42e737c3-d7ba-4f93-bdd1-11e4c327f7e3","1");

    }

}
